str = input("请输入一行字符")
a,b,c,d = 0,0,0,0
for i in str:
      if (i<='9') &(i>='0'):
            a += 1
      elif ((i>='A')& (i<='Z'))|((i>='a')& (i<='z')):
            b += 1
      elif (i==' '):
            c += 1
      else:
            d += 1
print("英文字符为：{},数字个数为:{},空格个数为：{}，其他字符为:{}".format(b,a,c,d))
